From: Georges Basile Stavracas Neto Date: Tue, 1 Sep 2020 20:12:56 +0000 (-0300) Subject: appDisplay: Connect to GSettings after reading key X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~672^2^2~11 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=998e3e62ad85333f9fb742c1da9ce4f9d3e12c9b;p=gnome-shell.git appDisplay: Connect to GSettings after reading key As per GSettings documentation, it is necessary to read a particular key at least once before being able to connect to the corresponding 'changed::' signal. Read the 'app-picker-layout' key before connecting to the changed signal. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1428 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 98ac9e68b..9e00823f6 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -829,11 +829,12 @@ var PageManager = GObject.registerClass({ _init() { super._init(); + this._updatingPages = false; + this._loadPages(); + global.settings.connect('changed::app-picker-layout', this._loadPages.bind(this)); - this._updatingPages = false; - this._loadPages(); } _loadPages() {